package com.example.shopping.controller;

import com.example.shopping.service.Products;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/29 18:30
 * @version: v1.0
 */
@RestController
public class ProductsController {
    @Autowired
    Products products;
    @GetMapping("/postProducts")
    public String postProducts(com.example.shopping.pojo.Products product){

        Boolean aBoolean = products.postProducts(product);

        return aBoolean ? "true" : "fail";
    }
}
